<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
			var a1=prompt("请输入工资");
			if(a1<3500){
				document.write("不交税")
			}else if(a1>3500&&a1<8000){
				document.write((a1-3500)*0.02);
			}else if(a1>8000&&a1<20000){
				document.write(((8000-3500)*0.02)+((a1-8000)*0.05));
			}else if(a1>20000){
				document.write(((8000-3500)*0.02)+((20000-8000)*0.05)+(a1-20000)*0.1);
			}
		</script>
	</head>
	<body>
	</body>
</html>
